<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Dept extends Model
{
    use HasDateTimeFormatter;
    use SoftDeletes;

    public function anquanyuan()
    {
        return $this->hasMany(Anquanyuan::class);
    }

    public function dianqi()
    {
        return $this->hasMany(Dianqi::class);
    }

    public function xhsmhq()
    {
        return $this->hasMany(Xhsmhq::class);
    }

    public function yinhuan()
    {
        return $this->hasMany(Yinhuan::class);
    }

    public function fangjian()
    {
        return $this->hasMany(Fangjian::class);
    }
}
